package yufa;

/**
 * @创建人 MBY381
 * @创建时间 2022/6/25 14:37
 * @描述 暂无
 */
public class SyntaxException extends Exception {
    private int lineNum;
    private int colNum;
    private String string;

    public SyntaxException(int lineNum, int colNum, String str) {
        super();
        this.lineNum = lineNum;
        this.colNum = colNum;
        this.string = str;
    }

    @Override
    public String toString() {
        return "ExceptionOfNote:" + "第" + lineNum + "行,第" + colNum + "列:"+string;
    }
}
